<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<script>
    var nums = [0,1,2,3,4,5],arr=[];
    for (var i = 0; i < nums.length;i++) {
        nums[i] = nums[i+1];
    }
    console.log(nums); // 1,2,3,4,5,
</script>
</body>
</html>